vectorimage.calc
Class Calc
java.lang.Object
vectorimage.calc.Calc
public class Calc
- extends java.lang.Object
Mathematical tools for vector image objects.
- Author:
- Steven de Jong, steven.dejong@cs.unimaas.nl
|
Field Summary |
static double |
STEP_SIZE
Determine the increase in scan size that the sonar method uses;
accurary is half this setting (i.e. with a setting of 4 and a
distance reported of 100, the actual distance is in the interval
[98,102]. |
|
Constructor Summary |
Calc()
|
|
Method Summary |
static double |
distance(VectorObject object,
java.awt.geom.Point2D.Double p,
java.awt.Shape inRegion)
Returns the distance between a shape and a point. |
static boolean |
intersecting(java.awt.Shape a,
java.awt.Shape b)
http://forum.java.sun.com/thread.jsp? |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
STEP_SIZE
public static double STEP_SIZE
- Determine the increase in scan size that the sonar method uses;
accurary is half this setting (i.e. with a setting of 4 and a
distance reported of 100, the actual distance is in the interval
[98,102]. Sonar method is used in all cases where distance cannot
be determined analytically.
Calc
public Calc()
distance
public static double distance(VectorObject object,
java.awt.geom.Point2D.Double p,
java.awt.Shape inRegion)
- Returns the distance between a shape and a point. Looks only within
the shape provided. Returns a negative value when nothing is found
within this shape.
intersecting
public static final boolean intersecting(java.awt.Shape a,
java.awt.Shape b)
- http://forum.java.sun.com/thread.jsp?forum=406&thread=313392